import random

lst = []
for x in range(10):
    lst.append(random.randint(1,100))
print(lst)

for i in range(len(lst)):
    for j in range(len(lst)-i-1):
        if lst[j]>lst[j+1]:
            lst[j],lst[j+1] = lst[j+1],lst[j]
print(lst)